using System.Data.Entity;
using viBook.Models;

namespace viBook.Repositories
{
    public class viBookContext : DbContext
    {
        // You can add custom code to this file. Changes will not be overwritten.
        // 
        // If you want Entity Framework to drop and regenerate your database
        // automatically whenever you change your model schema, add the following
        // code to the Application_Start method in your Global.asax file.
        // Note: this will destroy and re-create your database with every model change.
        // 
        // System.Data.Entity.Database.SetInitializer(new System.Data.Entity.DropCreateDatabaseIfModelChanges<viBook.Models.viBookContext>());

        public DbSet<Chapter> Chapters { get; set; }

        public DbSet<ChapterComment> ChapterComments { get; set; }

        public DbSet<Page> Pages { get; set; }

        public DbSet<Book> Books { get; set; }

        public DbSet<ContentTag> ContentTags { get; set; }

        public DbSet<ChapterLike> ChapterLikes { get; set; }

        public DbSet<BookCommentLike> BookCommentLikes { get; set; }

        public DbSet<ChapterCommentLike> ChapterCommentLikes { get; set; }

        public DbSet<BookLike> BookLikes { get; set; }

        public DbSet<Tag> Tags { get; set; }


        public DbSet<Author> Authors { get; set; }

        public DbSet<Category> Categories { get; set; }

        public DbSet<User> Users { get; set; }
        public DbSet<ReportOnChapterComment> ReportOnChapterComments { get; set; }
        public DbSet<ReportOnBookComment> ReportOnBookComments { get; set; }
        public DbSet<ReportOnBook> ReportOnBooks { get; set; }
        public DbSet<ReportOnUser> ReportOnUsers { get; set; }

        public DbSet<BookComment> BookComments { get; set; }

        public DbSet<Activity> Activities { get; set; }

        public DbSet<BookContentTags> BookContentTags { get; set; }
    }
}
